package org.go.examples.example_09;

import java.util.Date;
import java.util.List;

import org.go.Go;
import org.go.GoContext;
import org.go.expcetion.GoException;
import org.go.expcetion.WorkExecutionException;

/**
 * This task counts from 1 to 30.
 */
public class MyTask implements Go {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7661601582238188348L;

	@Override
	public Boolean doWork(GoContext context) throws WorkExecutionException {
		System.out.println("MyTask Current system time: " + new Date() + " ,Thread name is : " + Thread.currentThread().getName());
		System.out.println("Another minute ticked away: " + new Date() + " ,Thread name is : " + Thread.currentThread().getName());
		System.out.println("");
		return null;
	}

	@Override
	public List selectWork(String taskParameter, String ownSign, int taskItemNum, List workParamList, int eachFetchDataNum) throws GoException {
		return null;
	}
}
